cmake_minimum_required(VERSION 3.6)
project(TkDatabase)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(SOURCE_FILES
        database/include/Tkdatabase.h
        database/src/Tkdatabase.cpp
        database/include/Tkdatanode.h
        database/src/Tkdatanode.cpp
        consensus/include/tk_consensus.h
        consensus/include/tk_config.h
        consensus/include/tk_log.h
        utils/include/debug.h
        consensus/include/tk_elog.h
        consensus/include/tk_command.h
        consensus/include/tk_message.h
        consensus/include/replica.h
        consensus/src/replica.cpp
        execution/include/exec.h
        execution/src/exec.cpp
        config/config.h
        utils/include/msg_queue.h
        utils/src/msg_queue.cpp
        utils/include/utils.h

        utils/src/utils.cpp 
        utils/include/communication.h 
        utils/src/communication.cpp 
        master/src/master.cpp 
        master/include/master.h 
        server/include/server.h
        server/src/server.cpp
        client/include/client.h
        client/src/client.cpp
        transporter/test/new_test.c utils/test/test_tcp.cpp utils/test/test_tcpclient.cpp utils/include/new_queue.h utils/src/new_queue.cpp)

add_executable(TkDatabase ${SOURCE_FILES})